# 基础镜像
FROM  openjdk:8-jre
# author
MAINTAINER thinglinks
# 设定时区
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# 挂载目录
VOLUME /www/wwwroot/thinglinks
# 创建目录
RUN mkdir -p /www/wwwroot/thinglinks
# 指定路径
WORKDIR /www/wwwroot/thinglinks
# 复制jar文件到路径
COPY ./jar/thinglinks-visual-monitor-1.0.0.RELEASE.jar /www/wwwroot/thinglinks/monitor/monitor.jar
COPY ./jar/resources  /www/wwwroot/thinglinks/monitor/resources
# 启动监控中心
ENTRYPOINT ["java", "-Xmx400m", "-Xms400m", "-Xmn150m", "-Xss1024k", "-jar", "./monitor/monitor.jar"]